package biz.impl;

import java.util.List;
import java.util.Map;

import dao.DeptDao;

import entity.Dept;
import biz.DeptBiz;

public class DeptBizImpl implements DeptBiz {
	private DeptDao deptDao;
	public void addDept(Dept dept) {
		deptDao.addDept(dept);
	}

	public void updateDept(Dept dept) {
		deptDao.updateDept(dept);
	}

	public void deleteDept(Long id) {
		deptDao.deleteDept(id);
	}

	public Dept findOneDeptById(Long id) {
		return deptDao.findOneDeptById(id);
	}

	public List<Dept> findAllDept() {
		return deptDao.findAllDept();
	}

	public List<Dept> findDeptsByCondition(Map map) {
		// TODO Auto-generated method stub
		return null;
	}

	public void setDeptDao(DeptDao deptDao) {
		this.deptDao = deptDao;
	}
	
}
